﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace T.FAS.Runtime.Base.Entity
{
    /// <summary>
    /// 变更日志
    /// </summary>
    [Serializable]
    public class ChangeLog 
    {
        /// <summary>
        /// ID
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 变更的CDOID
        /// </summary>
        public string CDOID { get; set; }
        /// <summary>
        /// 变更的CDO编号
        /// </summary>
        public string CDOCode { get; set; }

        /// <summary>
        /// 变更的CDO名称
        /// </summary>
        public string CDOName { get; set; }
        /// <summary>
        /// 如果状态变更，记录变更前状态编号
        /// </summary>
        public string OldStateCode { get; set; }
        /// <summary>
        /// 如果状态变更，记录变更前状态名称
        /// </summary>
        public string OldStateName { get; set; }
        /// <summary>
        /// 如果状态变更，记录变更后状态编号
        /// </summary>
        public string NewStateCode { get; set; }
        /// <summary>
        /// 业务单据ID
        /// </summary>
        public string BillID { get; set; }
        /// <summary>
        /// 如果状态变更，记录变更后状态名称
        /// </summary>
        public string NewStateName { get; set; }
        /// <summary>
        /// Action
        /// </summary>
        public string Action { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantID { get; set; }
        /// <summary>
        /// 数据变更明细
        /// </summary>
        public List<ChangeLogDetail> ChangeDatas { get; set; }
    }
}
